/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sellcar;

import java.awt.Dimension;
import java.awt.Toolkit;

/**
 *
 * @author Marcos
 */
public class Tela_Relatorio extends javax.swing.JFrame {

    /**
     * Creates new form Tela_Relatorio
     */
    public Tela_Relatorio() {
        initComponents();
        this.setLocationRelativeTo(null);
        
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        BtVenda = new javax.swing.JButton();
        BtStatus = new javax.swing.JButton();
        BtCotacao = new javax.swing.JButton();
        BtUsuario = new javax.swing.JButton();
        BtCliente = new javax.swing.JButton();
        BtVeiculos = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        BtVoltar = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        BtVenda.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        BtVenda.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sellcar/Icones/relatorio.gif"))); // NOI18N
        BtVenda.setText("Relatório de Venda");
        BtVenda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtVendaActionPerformed(evt);
            }
        });

        BtStatus.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        BtStatus.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sellcar/Icones/relatorio.gif"))); // NOI18N
        BtStatus.setText("Relatório por Status");
        BtStatus.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtStatusActionPerformed(evt);
            }
        });

        BtCotacao.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        BtCotacao.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sellcar/Icones/relatorio.gif"))); // NOI18N
        BtCotacao.setText("Relatório de Cotação");
        BtCotacao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtCotacaoActionPerformed(evt);
            }
        });

        BtUsuario.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        BtUsuario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sellcar/Icones/relatorio.gif"))); // NOI18N
        BtUsuario.setText("Relatório de Usuário");
        BtUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtUsuarioActionPerformed(evt);
            }
        });

        BtCliente.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        BtCliente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sellcar/Icones/relatorio.gif"))); // NOI18N
        BtCliente.setText("Relatorio de Cliente");
        BtCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtClienteActionPerformed(evt);
            }
        });

        BtVeiculos.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        BtVeiculos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sellcar/Icones/relatorio.gif"))); // NOI18N
        BtVeiculos.setText("Relatório de Veiculos");
        BtVeiculos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtVeiculosActionPerformed(evt);
            }
        });

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("SELLCAR - MENU RELATORIO");

        BtVoltar.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        BtVoltar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sellcar/Icones/arrow_left.png"))); // NOI18N
        BtVoltar.setText("Voltar");
        BtVoltar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtVoltarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(BtVoltar)
                .addGap(23, 23, 23))
            .addGroup(layout.createSequentialGroup()
                .addGap(163, 163, 163)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(BtVeiculos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(BtCliente, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(BtUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(BtCotacao, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(BtStatus, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(BtVenda, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(172, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabel1)
                .addGap(33, 33, 33)
                .addComponent(BtVenda)
                .addGap(18, 18, 18)
                .addComponent(BtStatus)
                .addGap(18, 18, 18)
                .addComponent(BtCotacao)
                .addGap(18, 18, 18)
                .addComponent(BtUsuario)
                .addGap(18, 18, 18)
                .addComponent(BtCliente)
                .addGap(18, 18, 18)
                .addComponent(BtVeiculos)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 41, Short.MAX_VALUE)
                .addComponent(BtVoltar)
                .addGap(22, 22, 22))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void BtVoltarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtVoltarActionPerformed
        // Botão Voltar
        this.dispose();
    }//GEN-LAST:event_BtVoltarActionPerformed

    private void BtVendaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtVendaActionPerformed
        // TODO add your handling code here:
        new Relatorio_Venda().setVisible(true);
    }//GEN-LAST:event_BtVendaActionPerformed

    private void BtStatusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtStatusActionPerformed
        // TODO add your handling code here:
        new Relatorio_Status().setVisible(true);
    }//GEN-LAST:event_BtStatusActionPerformed

    private void BtCotacaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtCotacaoActionPerformed
        // TODO add your handling code here:
        new Relatorio_Cotação().setVisible(true);
    }//GEN-LAST:event_BtCotacaoActionPerformed

    private void BtUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtUsuarioActionPerformed
        // TODO add your handling code here:
        new Relatorio_Usuario().setVisible(true);
    }//GEN-LAST:event_BtUsuarioActionPerformed

    private void BtClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtClienteActionPerformed
        // TODO add your handling code here:
        new Relatorio_Cliente().setVisible(true);
    }//GEN-LAST:event_BtClienteActionPerformed

    private void BtVeiculosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtVeiculosActionPerformed
        // TODO add your handling code here:
        new Relatorio_Veiculo().setVisible(true);
    }//GEN-LAST:event_BtVeiculosActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Tela_Relatorio.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Tela_Relatorio.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Tela_Relatorio.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Tela_Relatorio.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new Tela_Relatorio().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton BtCliente;
    private javax.swing.JButton BtCotacao;
    private javax.swing.JButton BtStatus;
    private javax.swing.JButton BtUsuario;
    private javax.swing.JButton BtVeiculos;
    private javax.swing.JButton BtVenda;
    private javax.swing.JButton BtVoltar;
    private javax.swing.JLabel jLabel1;
    // End of variables declaration//GEN-END:variables
}
